<!--
 * @Author: your name
 * @Date: 2021-09-26 20:50:13
 * @LastEditTime: 2021-12-16 17:43:37
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_test\src\App.vue
-->
<template>
  <div class="container">
    <Category title="美食">
      <img
        src="https://pic.rmb.bdstatic.com/bc3e9e80af978c75d4494b2f5bdb6b91.jpeg"
        alt="羊肉串"
      />
    </Category>
    <Category title="游戏">
      <ul>
        <li v-for="(g, index) in games" :key="index">{{ g }}</li>
      </ul>
    </Category>
    <Category title="电影">
     <iframe frameborder="0" src="https://v.qq.com/txp/iframe/player.html?vid=d0040cqqgtz" allowFullScreen="true"></iframe>
    </Category>
  </div>
</template>

<script>
import Category from "./components/Category";

export default {
  name: "App",
  components: { Category },
  data() {
    return {
      foods: ["火锅", "烧烤", "小龙虾", "面条", "牛排"],
      games: ["红色警戒", "穿越火线", "英雄联盟", "超级玛丽"],
      films: ["《教父》", "《霸王别姬》", "《逃学威龙》", "《拆弹专家》"],
    };
  },
};
</script>
<style>
.container {
  display: flex;
  justify-content: space-around;
}
h3 {
  text-align: center;
  background-color: orange;
}
img {
  width: 100%;
}
iframe {
  width: 100%;
}
</style>
